package com.mask.im.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author jian
 */

@Getter
@AllArgsConstructor
public enum FileUploadEnum {

    OSS("oss", "ossUploadStrategyImpl");

    private final String type;

    private final String executor;

    public static String selectExecutor(String type) {
        for (FileUploadEnum value : FileUploadEnum.values()) {
            if (value.type.equals(type)) {
                return value.executor;
            }
        }
        return null;
    }
}
